Hacked to use the debug data.
